package com.revai.engine.basic.core;

public enum AuditStateEnum {
    //0表示待提交
    PENDING(0, "待提交"),
    //1表示审批中
    IN_APPROVAL(1, "审批中"),
    //2已退回
    RETURNED(2, "已退回"),
    //3已批准
    COMPLETED(3, "已批准"),
    //4已失效
    EXPIRED(4, "已失效");
    //状态
    private final int code;
    //状态值
    private final String value;

    //构造方法
    AuditStateEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }

    //获取状态值
    public int getCode() {
        return code;
    }

    //获取状态值
    public String getValue() {
        return value;
    }
}
